package org.misty.seckill.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

@Getter
@Setter
@ToString
public class Goods {
  @JsonSerialize(using = ToStringSerializer.class)
  private long id;
  private String name;
  private String title;
  private String img;
  private String detail;
  private BigDecimal price;
  private int stock;
}
